<%@page import="guest.GuestVo"%>
<%@page import="guest.Guest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>modify.jsp</title>
<style>
@import url(http://fonts.googleapis.com/earlyaccess/jejugothic.css);
	/* "Jeju Gothic" */
body {
	font-family: "Jeju Gothic";
	font-size: 18px;
}

#memo {
	border: 1px solid #123582;
	width: 600px;
	height: 300px;
	background-color: #882322;
}

#main_list {
	width: 600px;
	height: 100%;
}
</style>
<script>
	function init() {
		document.getElementById('btnList').onclick = function() {
			location.href = "index2.jsp?inc_content=./guest/list.jsp";
		}
	}
</script>

</head>

<body>
	<jsp:useBean id="vo" class="guest.GuestVo" />
	<jsp:setProperty property="*" name="vo" />
	<%
		Guest g = new Guest();
		g.setVo(vo);
		GuestVo gv = g.view();
	%>

	<div id='main_list'>

		<!-- Header -->
		<h1>✦글수정</h1>
		<hr />
		<!-- End header -->

		<!-- Contents -->
		<form id='modify_frm' action='index2.jsp?inc_content=./guest/modify_result.jsp' method='post'>
			<label>글 번 호 : <input type="text" name="serial" value="<%=gv.getSerial()%>">
			</p> 
			
			<label>작 성 자 : </label>
			<input style="width: 210px;" type="text" id='writer' name='mid' value="<%=gv.getMid()%>"> &nbsp; 
			
			<label>작 성 일 : </label>
			<input style="width: 210px;" type="text" id='mdate' value="<%=gv.getMdate()%>">
			</p> 
			
			<label>Subject : </label>
			<input type="text" id='subject' name='subject' value="<%=gv.getSubject()%>"  style="width: 330px;">
			</p> 
			
			<input type="text" id='memo' name='content' value="<%=gv.getContent()%>">
			</p> 
			
			<!-- End Contents --> <!-- 버튼(저장/목록) -->
			<div style="text-align:right;">
				<input type="submit" id='btnOk' value="수정"> 
				<input type="button" id='btnList' value="목록">
			</div>
		</form>
		<!-- end 버튼 -->

	</div>
	<script>
		init();
	</script>
</body>
</html>